-- GENERATED SPELL FOR [Evergrove Ancient] --


function spell0_22478(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(39274,pUnit)
pUnit:RegisterEvent('Sorts_22478', 574, 1)
end

function Sorts_22478(pUnit, Event)
local choix_sorts_22478 = math.random(0, 0)
if choix_sorts_22478 == 0 then
pUnit:RegisterEvent('spell0_22478', 1, 1)
end
end

function mob22478_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22478', math.random(1500, 3000), 1)
end

function mob22478_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22478_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22478_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22478, 1, 'mob22478_Action')
RegisterUnitEvent(22478, 2, 'mob22478_Leave')
RegisterUnitEvent(22478, 3, 'mob22478_Kill')
RegisterUnitEvent(22478, 4, 'mob22478_Die')
